﻿namespace BoresSoft.Ftp
{
	/// <summary>
	/// Business logic Errors that can happen in BoresSoft.Ftp.
	/// </summary>
    public enum ErrorCode
    {
		/// <summary>
		/// No error.
		/// </summary>
        None = 0,

		/// <summary>
		/// Invalid response received from remote server.
		/// </summary>
        InvalidResponse,

		/// <summary>
		/// Unexpected response code received from remote server.
		/// </summary>
		/// <remarks>
		/// Usually this means that remote server responds with error.
		/// </remarks>
        UnexpectedResponseCode,

		/// <summary>
		/// Anonymous authentication failed and no credentials was provided.
		/// </summary>
        AuthenticationFailed,

		/// <summary>
		/// Ivalid character between code and message in server response.
		/// </summary>
        InvalidMarker,

		/// <summary>
		/// Remote server type is unknown.
		/// </summary>
		/// <remarks>
		/// Exception with this code is thrown insite file listing parser code.
		/// </remarks>
        UnknownServerType
    }

    internal enum ServerSystemType
    {
        None,
        Unix,
		MsDos,
        Unknown
    }
}